import { getlink } from "@/api/getlink.js"
export let cakem = {
    state: {
        arr: []
    },
    mutations: {
        qwer(state, payload) {
            state.arr = payload
        }
    },
    actions: {
        axiosgift(context) {
            getlink("/demo/typeinfo").then((ok) => {
                console.log(ok.data.typeflower);
                context.commit("qwer", ok.data.typeflower)
            })
        },
        axiosgiftcake(context) {
            getlink("http://180.76.121.47:8008/cake").then((ok) => {
                console.log(ok.data.data);
                context.commit("qwer", ok.data.data)
            })
        }
    },
    getters: {}
}